package com.imu.purse.modules.trade.form;

import com.alibaba.fastjson.annotation.JSONField;
import com.imu.common.validator.group.AddGroup;
import com.imu.common.validator.group.UpdateGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.NotBlank;
import java.math.BigDecimal;

@Data
public class YmbWithdrawForm {
    @JSONField(ordinal = 1)
    @ApiModelProperty(value = "提现数量", name="bjNum", required = true, example="50000")
    @NotNull(message="提现数量不能为空", groups = {AddGroup.class, UpdateGroup.class})
    @Min(value=0, message="提现数量不能小于0", groups = {AddGroup.class, UpdateGroup.class})
    private BigDecimal bjNum;
    
    @JSONField(ordinal = 2)
    @ApiModelProperty(value = "提现金额", name="money", required = true, example="50000")
    @NotNull(message="提现金额不能为空", groups = {AddGroup.class, UpdateGroup.class})
    @Min(value=0, message="提现金额能小于0", groups = {AddGroup.class, UpdateGroup.class})
    private BigDecimal money;
    
    @JSONField(ordinal = 3)
    @ApiModelProperty(value = "验证码", name="acode", required = true, example="123456")
    @NotBlank(message="图片验证码不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String acode;
    
    @JSONField(ordinal = 4)
    @ApiModelProperty(value = "支付密码", name="pwd", required = true, example="123456")
    @NotBlank(message="支付密码不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String pwd;
}
